package com.jj.buy.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jj.buy.dao.jjbuydao;
import com.jj.buy.service.Userservice;
import com.jj.buy.entities.User;

@Service
public class UserserviceImp implements Userservice {

	@Autowired
	private jjbuydao dao;
	@Override
	public User get(String user_id) {
		return dao.get(user_id);
	}

	@Override
	public List list() {
		return dao.list();
	}

	@Override
	public boolean add(User user) {
		return dao.add(user);
	}

}
